package net.atomarrow.render;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import net.atomarrow.ioc.ActionContext;

public class RedirectRender extends Render {
	public static final String URL="URL";

	@Override
	public void render() {
		ActionContext context = ActionContext.getContext();
		HttpServletResponse response =context.getResponse();
		try {
			response.sendRedirect(getAttr(URL).toString());
		} catch (IOException e) {
			e.printStackTrace();
		}

	}

}
